package com.zhanggm.ry.order.feign;

import com.ruoyi.common.core.web.domain.AjaxResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("ry-stock")
public interface StockFegin {

    @PutMapping("/stock/reduce")
    public AjaxResult reduce(@RequestParam("skuId") Long skuId, @RequestParam("stockNum") Integer stockNum);

}
